# -*- coding: utf-8 -*-
import scrapy
from ..items import NovelspiderItem


class ZyrSpider(scrapy.Spider):
    name = 'zyr'
    allowed_domains = ['qidian.com']
    start_urls = ['https://www.qidian.com/free/all']

    def parse(self, response):
        yield scrapy.Request(
            url=response.url,
            callback=self.parese_one_page,
            dont_filter=False,
        )

    def parese_one_page(self, response):
        print("hello world")
